package com.example.hangzhou.welbeing.mytestdemoapp.animation.animationActivity;

import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.transition.Fade;
import android.widget.Button;

import com.example.hangzhou.welbeing.mytestdemoapp.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 杭州惟君医疗科技有限公司13
 * Created by 20433 on 2018/5/10
 *
 * @desc 东风山河绿，春已不折柳，繁花看不尽，处处惹人留
 * @desc 佛祖镇楼，bug辟容易
 */

public class AnimatedSpreadActivity extends AppCompatActivity {
    @Bind(R.id.button11)
    Button button11;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //TODO 淡入淡出
        getWindow().setEnterTransition(new Fade().setDuration(2000));
        getWindow().setExitTransition(new Fade().setDuration(2000));
        getWindow().setAllowEnterTransitionOverlap(true);
        setContentView(R.layout.activity_animation_spread);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.button11)
    public void onViewClicked() {

        Intent intent_05 = new Intent(AnimatedSpreadActivity.this, AnimatedSpreadOneActivity.class);
       // startActivity(intent_05);
        startActivity(intent_05, ActivityOptions.makeClipRevealAnimation(button11,0,0,button11.getRight(),button11.getBottom()).toBundle());


    }
}
